//
//  NYRecommendManager.h
//  Nooryes
//
//  Created by baken on 2020/2/22.
//  Copyright © 2020 MyApp. All rights reserved.
//

#import "BaseNetManager.h"
@class NYTopicCategoryModel,NYRecommendSlideModel,NYArticleListModel,NYArticleDetailModel,NYMainModel,NYCommentListModel,NYMiniAdModel;

NS_ASSUME_NONNULL_BEGIN

@interface NYRecommendManager : BaseNetManager

+ (void)getCategoryListWithCompletionHandle:(void (^)(NYTopicCategoryModel *model, NSError *error))complete;

+ (void)getRecommedSlideWithCompletionHandle:(void (^)(NYRecommendSlideModel *model, NSError *error))complete;

+ (void)getRecommedListWithPage:(NSString *)page andCompletionHandle:(void (^)(NYArticleListModel *model, NSError *error))complete;

+ (void)getArticleWithArticleID:(NSString *)articleID andCompletionHandle:(void (^)(NYArticleDetailModel *model, NSError *error))complete;


+(void)collectInfoWithUserID:(NSString *)uid andSessionID:(NSString *)sessionid andType:(NSString *)type andID:(NSString *)dataid andCompletionHandle:(void (^)(NYMainModel *, NSError *))complete;

+(void)cancelCollectInfoWithUserID:(NSString *)uid andSessionID:(NSString *)sessionid andType:(NSString *)type andID:(NSString *)dataid andCompletionHandle:(void (^)(NYMainModel *, NSError *))complete;

+(void)likeInfoWithUserID:(NSString *)uid andSessionID:(NSString *)sessionid andID:(NSString *)dataid andCompletionHandle:(void (^)(NYMainModel *, NSError *))complete;

+(void)cancelLikeInfoWithUserID:(NSString *)uid andSessionID:(NSString *)sessionid andID:(NSString *)dataid andCompletionHandle:(void (^)(NYMainModel *, NSError *))complete;

+ (void)getArticleCommentsWithArticleID:(NSString *)articleID andPage:(NSString *)page andCompletionHandle:(void (^)(NYCommentListModel *model, NSError *error))complete;

+ (void)postCommentWithArticleID:(NSString *)articleID andTitle:(NSString *)title andContent:(NSString *)content andUserID:(NSString *)uid andSessionID:(NSString *)sessionid andCompletionHandle:(void (^)(NYMainModel *model, NSError *error))complete;

+ (void)replyCommentWithArticleID:(NSString *)articleID andCommentID:(NSString *)commentid andContent:(NSString *)content andUserID:(NSString *)uid andSessionID:(NSString *)sessionid andCompletionHandle:(void (^)(NYMainModel *model, NSError *error))complete;

+ (void)getMiniAdWithCompletionHandle:(void (^)(NYMiniAdModel *model, NSError *error))complete;

//+ (void)getRecommedListWithPage:(NSString *)page andTopicID:(NSString *)ID andCompletionHandle:(void (^)(NYArticleListModel *model, NSError *error))complete;
//
@end

NS_ASSUME_NONNULL_END
